Skip to content
This repository was archived by the owner on Sep 18, 2020. It is now read-only.

Store realtime object to instance variable.#57

Open
mazgi wants to merge 2 commits intoaki017:devfrom
mazgi:store-realtime-instance-variable
Open

Store realtime object to instance variable.#57
mazgi wants to merge 2 commits intoaki017:devfrom
mazgi:store-realtime-instance-variable

Conversation

@mazgi
Copy link

@mazgi mazgi commented Jun 10, 2017

This feature enable both following:

https://github.com/aki017/slack-ruby-gem/blob/dev/examples/rtm.rb#L7-L11

rtm = client.realtime
rtm.on :message do |m|
  p m
end
rtm.start

and

client.realtime.on :message do |m|
  p m
end
client.realtime.start

@ioquatix
Copy link

How does this work if you want multiple connections?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants